<?php $errors = pc_variable("errors");
$propertyName = pc_variable("propertyName");
if($errors !== null) {
    $error = $errors->get($propertyName);
    if($error !== null) { ?>
        <ul class="errors">
            <li><?php pc_echo(pc_message($error->getKey(), $error->getParameters())); ?></li>
        </ul>
    <?php } 
} ?>